package zhongbo.java.air.ingestion.web.controller;


import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import zhongbo.java.air.common.vo.PageVo;
import zhongbo.java.air.common.vo.ResultVo;
import zhongbo.java.air.ingestion.dto.FlightPathDto;
import zhongbo.java.air.ingestion.model.AirFlightPath;
import zhongbo.java.air.ingestion.service.impl.AirIngestionServiceImpl;

import java.util.Date;

@RestController
@Api(tags = "航迹记录相关")
@RequestMapping("/api/airIngestion")
public class AirIngestionController {

    @Autowired
    private AirIngestionServiceImpl airIngestionService;


//    @GetMapping("/page")
//    public ResultVo<PageVo<FlightPathDto>> pageFlightPathAll (@RequestParam(required = true) String icao,
//                                                              @RequestParam(defaultValue = "2025-04-02 14:42:40.039") Date startTime,
//                                                              @RequestParam(defaultValue = "2025-04-06 11:11:41.266") Date endTime,
//                                                              @RequestParam(defaultValue = "1") Integer pageNumber,
//                                                              @RequestParam(defaultValue = "1") Integer pageSize) {
//        PageVo<FlightPathDto> page = airIngestionService.pageFlightPathAll(icao, startTime, endTime, pageNumber, pageSize);
//        return ResultVo.ok(page);
//    }

}
